package com.qczl.vehicle.domain.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.qczl.common.core.annotation.Excel;
import jakarta.validation.constraints.NotBlank;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @Author: 钟城明
 * @CreateTime: 2025-09-21
 * @Description:
 * @Version: 1.0
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class VehiclesVo {
    /**
     * 车辆id
     */
    @TableId(value = "id", type = IdType.AUTO)
    @Excel(name = "车辆ID")
    private Long id;
    /**
     * 车牌号
     */
    @Excel(name = "车牌号")
    private String plateNumber;
    /**
     * 品牌名称
     */
    @Excel(name = "品牌名称")
    private String brandName; //品牌名称
    /**
     * 车型
     */
    @NotBlank(message = "车辆名不能为空")
    @Excel(name = "车型")
    private String model;
    /**
     * 生产年份
     */
    @Excel(name = "生产年份")
    private String year;
    /**
     * 颜色
     */
    @Excel(name = "颜色")
    private String color;
    /**
     * 日租金
     */
    @Excel(name = "日租金")
    private Double dailyRate;
    /**
     * 车辆状态
     */
    @Excel(name = "车辆状态")
    private String status;
    /**
     * 车辆图片
     */
    @Excel(name = "车辆图片")
    private String imageUrl;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;


}
